import request from '@/utils/request';

//获取订单列表
export async function getOrders(params){
  return request('/admin/orders?include=user',{params})
}
//获取订单详情
export async function showOrders(editId){
  return request(`/admin/orders/${editId}?include=goods,user,orderDetails`)
}
//订单发货
export async function orderDelivery(editId,data){
  return request.patch(`/admin/orders/${editId}/post`,{data})
}